//
//  MyTableView.m
//  Test
//
//  Created by xueshan1 on 2019/6/13.
//  Copyright © 2019 xueshan1. All rights reserved.
//

#import "MyTableView.h"
#import "UIView+Externsion.h"

@interface MyTableView ()

@property(nonatomic,strong)UIButton *btn;

@end

@implementation MyTableView

- (void)drawRect:(CGRect)rect{
    
}
- (void)drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx{
    
    
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    self = [super initWithCoder:aDecoder];
    if (self) {
        
       
        
    }
    return self;
}

- (void)btnClicked:(UIButton *)btn{
    NSLog(@"btnClicked");
    
    
}

- (CGFloat)getheight{
    return self.height;
}

- (MyTableView *(^)(CGFloat))btnWidth{
    return ^(CGFloat wid){
        self.btn.width = wid;
        return self;
    };
}

- (MyTableView *(^)(CGFloat))btnY{
    return ^(CGFloat y){
        self.btn.y = y;
        return self;
    };
}

@end
